class UserBean {
  String name;
  String email;
  int age;
  String pwd;

  UserBean(this.name, this.email, this.age, this.pwd);

  @override
  String toString() => "{name:$name,email:$email,age:$age,pwd:$pwd}";

  Map<String, dynamic> toMap() => {"name": name, "email": email, "age": age, "pwd": pwd};

  factory UserBean.fromMap(Map<String, dynamic> map) => UserBean(map["name"] ?? "", map["email"] ?? "", map["age"] ?? "", map["pwd"] ?? "");
}
